I$("3aff98b8383f1f024fe18e8227ff3a58", function (e, t, a) {
    var i = {
        sense: "74b1d03fcaf944b4aa3a862b2a1893e1",
        jigsaw: "5a0e2d04ffa44caba3f740e6a8b0fa84",
        point: "347e9080f7a84e3e8cb79311f9e4cd3f",
        sense_custom: "74b1d03fcaf944b4aa3a862b2a1893e1",
        jigsaw_custom: "7569f916663148a996587e52ed1ed713",
        point_custom: "c89f87d921d84f2fa3684da27c74aaf8"
    };
    var n = 0;
    var r = {};
    var s = function () {
        var e = a.query(".j-captcha-sense");
        if (e) l(); else u()
    };
    var o = function (e) {
        var t = a.query(".tcapt-tabs__tab", !0);
        var i = a.query(".tcapt-type__item", !0);
        for (var s = 0; s < t.length; s++) !function (s, o) {
            a.addEvent(s, "click", function (c) {
                if (n !== o) {
                    a.delClass(t[n], "active");
                    a.addClass(s, "active");
                    a.delClass(i[n], "active");
                    a.addClass(i[o], "active");
                    n = o;
                    var l = c.target || c.srcElement;
                    r = {type: l.getAttribute("captcha-type"), mode: l.getAttribute("captcha-mode")};
                    e(r, o)
                }
            })
        }(t[s], s);
        var o = t[n];
        r = {type: o.getAttribute("captcha-type"), mode: o.getAttribute("captcha-mode")};
        e(r, n)
    };
    var c = function (e, t) {
        var n = a.query(".j-custom", !0);
        for (var s = 0; s < n.length; s++) !function (n, s) {
            a.addEvent(n, "click", function () {
                var a = "true" === n.getAttribute("data-custom");
                n.setAttribute("data-custom", !a);
                var o = {};
                if (!a) {
                    o = {
                        customStyles: {
                            imagePanel: {borderRadius: "8px"},
                            controlBar: {borderRadius: "22px"},
                            icon: {
                                intellisenseLogo: "/public/res/web/custom_logo.png",
                                slider: "/public/res/web/custom_logo.png"
                            }
                        },
                        customTexts: {
                            intellisense: {normal: "我是自定义提示文案哦～"},
                            slideTip: "我是自定义提示文案哦～",
                            clickButton: "我是自定义提示文案哦～"
                        }
                    };
                    if (t) o.captchaId = i[r.type + "_custom"]; else o.captchaId = "a6ab911423aa49b39abd800c30e1f671";
                    n.innerHTML = "返回默认样式"
                } else n.innerHTML = "点击查看自定义样式";
                e(s, o)
            })
        }(n[s], s)
    };
    var l = function () {
        function e(e, a, n, r) {
            r = r || {};
            if (e) {
                r = Object.assign({
                    width: "286px",
                    mode: "bind",
                    captchaId: i[n],
                    onVerify: t,
                    element: h[a],
                    appendTo: m[a]
                }, r);
                l && l.destroy();
                l = null;
                initNECaptcha(r, function (e) {
                    l = e
                });
                s()
            } else {
                r = Object.assign({width: "320px", captchaId: i[n], element: v[a]}, r);
                u && u.destroy();
                u = null;
                initNECaptcha(r, function (e) {
                    u = e
                })
            }
        }

        function t(e, t) {
            if (!e) s(".tcapt-bind--result")
        }

        function s(e) {
            var t = m[n];
            var i = t.querySelectorAll(".tcapt-bind");
            var r = e ? t.querySelector(e) : i[0];
            for (var s = 0, o = i.length; s < o; s++) a.delClass(i[s], "tcapt-bind--active");
            a.addClass(r, "tcapt-bind--active")
        }

        var l = null;
        var u = null;
        var d = function (t, a) {
            var i = t.type;
            e(!1, a, i);
            e(!0, a, i)
        };
        var p = a.query(".j-bind", !0);
        var f = a.query(".j-back", !0);
        var h = a.query(".j-capt", !0);
        var m = a.query(".tcapt_wrap--bind", !0);
        var v = a.query(".j-captcha-sense", !0);
        for (var g = 0; g < p.length; g++) a.addEvent(p[g], "click", function () {
            l && l.verify()
        });
        for (var _ = 0; _ < f.length; _++) a.addEvent(f[_], "click", function () {
            l.refresh();
            s()
        });
        o(d);
        c(function (t, a) {
            if (t % 2) e(!0, n, r.type, a); else e(!1, n, r.type, a)
        }, !0)
    };
    var u = function () {
        function e(e, i, r) {
            var s = n[e].getAttribute("data-type");
            r = r || {};
            t && t.destroy();
            t = null;
            r = Object.assign({
                element: n[e],
                captchaId: "07e2387ab53a4d6f930b8d9a9be71bdf",
                mode: i,
                captchaType: s.toUpperCase(),
                width: "320px"
            }, r);
            if ("popup" === i) r.appendTo = a.query(".tcapt_wrap--pop");
            initNECaptcha(r, function (e) {
                t = e
            })
        }

        var t = null;
        var i = function (t, a) {
            var i = t.mode;
            e(a, i)
        };
        var n = a.query(".j-captcha", !0);
        var s = a.query(".j-pop");
        o(i);
        c(function (t, a) {
            e(t, r.mode, a)
        });
        a.addEvent(s, "click", function () {
            t.popUp()
        })
    };
    var d = function () {
        var e = a.query("#J-compare-button");
        var t = a.query("#J-compare-close");
        var i = a.query("#J-compare-dialog");
        a.addEvent(e, "click", function () {
            i && (i.style.display = "")
        });
        a.addEvent(t, "click", function () {
            i && (i.style.display = "none")
        })
    };
    var p = function () {
        e.init();
        e.initInputPlaceholder();
        new t({footer: ".layout-quick"});
        s();
        d()
    };
    p()
}, "3616b382937e6e8c17674ea8dbe934bb", "c1ad52afc8090af5a38a5988e40b3364", "aafc411466320be9d3ba078ae6651100");